package com.hss.rxjava.bean;


import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;
import java.util.List;

public class ResultUserCashInfo implements Parcelable{

    public double balance;///*用户的钱的总余额*/
    public double integral;//积分
	public String policyTotal;//保单总额度
	public String policyBalance;//保单余额
	public String policyUsed;//保单已使用
	public String policyStatus;//0没有保单, 其它为异常 1,有保单
	public List<BdedListMode> bdedList; //如果为空的，就不显示详情按钮

	public List<BdedListMode> getBdedList() {
		return bdedList;
	}

	public void setBdedList(List<BdedListMode> bdedList) {
		this.bdedList = bdedList;
	}

	public String getPolicyTotal() {
		return policyTotal;
	}

	public void setPolicyTotal(String policyTotal) {
		this.policyTotal = policyTotal;
	}

	public String getPolicyBalance() {
		return policyBalance;
	}

	public void setPolicyBalance(String policyBalance) {
		this.policyBalance = policyBalance;
	}

	public String getPolicyUsed() {
		return policyUsed;
	}

	public void setPolicyUsed(String policyUsed) {
		this.policyUsed = policyUsed;
	}

	public String getPolicyStatus() {
		return policyStatus;
	}

	public void setPolicyStatus(String policyStatus) {
		this.policyStatus = policyStatus;
	}

	public double getBalance() {
		return balance;
	}
	public void setBalance(double balance) {
		this.balance = balance;
	}
	public double getIntegral() {
		return integral;
	}
	public void setIntegral(double integral) {
		this.integral = integral;
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeDouble(this.balance);
		dest.writeDouble(this.integral);
		dest.writeString(this.policyTotal);
		dest.writeString(this.policyBalance);
		dest.writeString(this.policyUsed);
		dest.writeString(this.policyStatus);
		dest.writeList(this.bdedList);
	}

	public ResultUserCashInfo() {
	}

	protected ResultUserCashInfo(Parcel in) {
		this.balance = in.readDouble();
		this.integral = in.readDouble();
		this.policyTotal = in.readString();
		this.policyBalance = in.readString();
		this.policyUsed = in.readString();
		this.policyStatus = in.readString();
		this.bdedList = new ArrayList<BdedListMode>();
		in.readList(this.bdedList, BdedListMode.class.getClassLoader());
	}

	public static final Creator<ResultUserCashInfo> CREATOR = new Creator<ResultUserCashInfo>() {
		@Override
		public ResultUserCashInfo createFromParcel(Parcel source) {
			return new ResultUserCashInfo(source);
		}

		@Override
		public ResultUserCashInfo[] newArray(int size) {
			return new ResultUserCashInfo[size];
		}
	};
}
